home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / comm / bbs / Hydra11s.lha / HBBS / Source / Test / SharedLib / test.c < prev    next >
C/C++ Source or Header  |  1996-06-25  |  529b  |  30 lines

  1. #include "proto/exec.h"
  2. #include "proto/dos.h"
  3. #include "mylib_pragmas.h"
  4. #include "mylib_protos.h"
  5. #include <stdio.h>
  6. #include "common.h"
  7.  
  8. char __stdiowin[] = "con:0/0/640/100/";
  9.  
  10. struct Grow *testptr;
  11.  
  12. struct Library *MyLibBase;
  13.  
  14. main()
  15. {
  16.   MyLibBase = OpenLibrary("mylib.library",0);
  17.  
  18.   if (MyLibBase)
  19.   {
  20.       printf("Library Opened Sucessfully.\n");
  21.       testptr = blurgh(10);
  22.  
  23.       printf("test1 returned = %d %s\n", testptr->i,testptr->string);
  24.       CloseLibrary(MyLibBase);
  25.  
  26.       printf("Library Closed.\n");
  27.   }
  28. }
  29.  
  30.